﻿/*
 * 类    名：UEntity
 * 
 * 功能描述：UEntity接口
 * 
 * 创 建 者：CHZ
 * 
 * 创建日期：2012.8.12
 * 
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace PUBCOM
{
    public interface IUEntity<T> where T : class
    {
        int Delete(object Id);
        IList<T> ExecuteQuery(string query, params object[] pars);
        T GetById(object Id);
        T GetById(object Id, string KeyFiled);
        int Insert(T entity);
        int Insert(IEnumerable<T> list);
        int Update(T target);
        IList<T> GetList(QueryParam query, T target, out int RecordCount);
        IList<T> GetList(QueryParam query, out int RecordCount);
        DataTable GetListTable(QueryParam query, T target, out int RecordCount);
       
    }
}
